//#include<iostream>
//#include<cstring>
//using namespace std;
//int main(){
//	char arr1[102],arr2[102];
//	int count = 0,n,m;
//	cin >> arr1;
//	for(int i = 0; i < strlen(arr1); i++){
//		if(i == strlen(arr1)-1) arr2[i] = arr1[i] + arr1[0];
//		else arr2[i] = arr1[i] + arr1[i+1];
//	}
//	cout << arr2;
//	return 0;
//}
#include<iostream>
#include<cstring>
using namespace std;
int main(){
	char arr1[102],t;
	int count = 0,n,m;
	cin >> arr1;
	int i = 0;
	while(arr1[i]!='\0'){
		t = arr1[i] + arr1[(i+1) % strlen(arr1)];
		cout << (char)t;
		i++;
	}
	
	return 0;
}
